# _*_ coding: utf-8 _*_
# @Time : 2021/3/31 0031 2:03
# @Author : 夕木酱
import yaml
from config.conf import *


class Operationyaml():

    def dictyaml(self, filepath='data', filename='login.yaml'):
        with  open(cm.DATA_PATH(filepath=filepath, filename=filename), 'r', encoding='utf-8') as f:
            return yaml.safe_load(f)


o = Operationyaml()
print(o.dictyaml())
# >> > {'data_01': {'phone': 11123412312, 'password': 123456}}